#include "tools/range_test.h"
#include "tools/range.h"
#include "log.h"

void RangeTest::test()
{
    LogInfo() << "Range::range(1, 4): " << Range::range(1, 40);
    LogInfo() << "Range::range(1, 40, 2): " << Range::range(1, 40, 2);
    LogInfo() << "Range::range(1, 40, 3): " << Range::range(1, 40, 3);
    LogInfo() << "Range::range(1, 40, 4): " << Range::range(1, 40, 4);
    LogInfo() << "Range::range(1, 40, 5): " << Range::range(1, 40, 5);

    LogInfo() << "Range::range(40, 1, -1): " << Range::range(40, 1, -1);
    LogInfo() << "Range::range(40, 1, -2): " << Range::range(40, 1, -2);
    LogInfo() << "Range::range(40, 1, -3): " << Range::range(40, 1, -3);
    LogInfo() << "Range::range(40, 1, -5): " << Range::range(40, 1, -5);
    LogInfo() << "Range::range(40, 1, -10): " << Range::range(40, 1, -10);
    LogInfo() << "Range::range(40, 1, -40): " << Range::range(40, 1, -40);
}